<template>
	<div>
		<!-- 通知公告 -->
		<announcement @isPhoneChange='isPhoneChange' v-if="tabIndex == 0"></announcement>
		<!-- 公司动态 -->
		<company  v-else-if="tabIndex == 1"></company>
		<!-- 行业动态 -->
		<industry v-else></industry>
	</div>
</template>

<script>
	/**
	 * announcement:通知公告
	 * industry:行业动态
	 * company：公司动态
	 */
	import announcement from './components/announcement/announcement.vue'
	import company from './components/company/company.vue'
	import industry from './components/industry/industry.vue'
	export default {
		props:['tabIndex'],
		components:{
			announcement,
			company,
			industry
		},
		methods: {
			// 向home/index传递信息
			isPhoneChange(item) {
				this.$emit('isPhoneChange',item)
			}
		},
	}
</script>

<style scoped>

</style>